home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1999 March
/
EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso
/
earcd
/
devel
/
vbcc-68k-src
/
machines
/
amiga68k
/
libsrc
/
prof
/
profiler.h
< prev
Wrap
C/C++ Source or Header
|
1999-01-01
|
1KB
|
34 lines
/* $VER: profiler.h V0.1 (28.08.98)
*
* Portable profiler for vbcc.
* Copyright (c) 1998 Frank Wille
*
* The vbcc profiler is split into a system independant (profiler)
* and in a system specific (prof_sysdep) part.
*
* v0.1 (28.08.98) phx
* File created.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define PROFFILENAME "mon.out"
#define HASHTABSIZE 0x100 /* number of hash table entries */
struct prof {
struct prof *hashchain; /* next node */
char *name; /* function's name */
unsigned long called; /* number of function calls */
unsigned long totaltime; /* tot. time (us) in this f. and its sub rout.*/
/* only used during profiling: */
unsigned long entrytime; /* in micros since start of program */
unsigned long recursion_cnt; /* function must finish recursion */
};
/* system-dependant functions from prof_sysdep.c */
extern int _prof_timerinit(void);
extern unsigned long _prof_time(void);
extern void _prof_timerexit(void);